@charset "UTF-8";
* {
  margin: 0;
  box-sizing: border-box;
}

@keyframes footer-car-animate {
  0% {
    transform: scale(0.85);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.cat {
  position: relative;
  width: 100vw;
  max-width: 375px;
  height: 100vh;
  max-height: 820px;
  overflow: hidden;
  margin: 30px auto;
}

.cat .goods-container {
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.7);
  position: relative;
}

.cat .goods-nav, .cat .goods-list {
  overflow-y: auto;
  overflow-x: hidden;
  height: 100%;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  /* Chrome、Safari and Opera */
}

.cat .goods-nav::-webkit-scrollbar, .cat .goods-list::-webkit-scrollbar {
  display: none;
}

.cat .goods-nav {
  flex: 1;
  background-color: rgba(0, 0, 0, 0.1);
  padding-bottom: 100px;
}

.cat .goods-list {
  flex: 4;
  padding: 0 12px 80px 0;
}

.cat .goods-item {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.cat .goods-item.active .goods-btns i.i-jianhao,
.cat .goods-item.active .goods-btns span {
  display: block;
}

.cat .goods-pic {
  width: 80px;
  aspect-ratio: 1;
  margin: 0 12px;
  border-radius: 50%;
  object-fit: contain;
  background-color: rgba(184, 196, 162, 0.5);
}

.cat .goods-info {
  padding: 0 12px;
  font-size: 10px;
  flex: 1;
}

.cat .goods-title {
  font-size: 16px;
}

.cat .goods-desc, .cat .goods-cell {
  color: #999;
}

.cat .goods-desc, .cat .goods-cell, .cat .goods-confirm {
  margin-top: 8px;
}

.cat .goods-title, .cat .goods-cell {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.cat .goods-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cat .goods-prise {
  color: #eb5858;
  font-size: 16px;
}

.cat .goods-prise-unit {
  font-size: 8px;
}

.cat .goods-btns {
  display: flex;
  align-items: center;
}

.cat .goods-btns i {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  text-align: center;
  font-style: inherit;
  font-style: 14px;
}

.cat .goods-btns i.i-jiahao {
  color: #fff;
  background-color: rgba(0, 0, 255, 0.7);
}

.cat .goods-btns i.i-jianhao {
  border: 1px solid #ccc;
  display: none;
}

.cat .goods-btns span {
  margin: 0 8px;
  width: 2em;
  text-align: center;
  display: none;
}

.cat .goods-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  align-items: end;
  background-color: #111;
  padding-left: 10px;
}

.cat .goods-footer-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #111;
  flex-shrink: 0;
  box-shadow: 0 0 3px 0 #333;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat .goods-footer-icon.active .footer-icon {
  background-color: #8a89f2;
}

.cat .goods-footer-icon.active .footer-badge {
  display: block;
}

.cat .goods-footer-icon.animate .footer-icon {
  animation: footer-cat-animate 350ms ease-in-out;
}

.cat .goods-footer-icon .footer-icon {
  width: 95%;
  height: 95%;
  border-radius: inherit;
}

.cat .goods-footer-icon .footer-badge {
  display: none;
  position: absolute;
  left: 66%;
  bottom: 66%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  break-before: inherit;
  background-color: red;
  color: #ddd;
  font-size: 8px;
}

.cat .goods-footer-prise {
  flex: 1;
  color: #bbb;
  height: 100%;
  padding: 4px 10px;
}

.cat .goods-footer-prise .prise-number {
  height: 50%;
  font-size: 16px;
}

.cat .goods-footer-prise .prise-tip {
  font-size: 10px;
  margin-top: 4px;
}

.cat .goods-footer-pay {
  min-width: 30%;
  flex-shrink: 0;
  height: 100%;
  background-color: #333;
  color: #999;
  font-size: 14px;
}

.cat .goods-footer-pay.active {
  background-color: #76b572;
}

.cat .goods-footer-pay.active .pay {
  font-size: 18px;
  display: flex;
  color: white;
}

.cat .goods-footer-pay.active span {
  display: none;
}

.cat .goods-footer-pay .pay {
  display: none;
}

.cat .goods-footer-pay span {
  display: flex;
  font-size: 14px;
}

.cat .goods-footer-pay .pay,
.cat .goods-footer-pay span {
  height: 100%;
  align-items: center;
  justify-content: center;
}

.add-to-cat {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  transition: transform 0.5s linear;
}

.add-to-cat .add-to-cat-icon {
  display: block;
  width: 20px;
  height: 20px;
  line-height: 20px;
  border-radius: 50%;
  color: white;
  background-color: rgba(0, 0, 255, 0.7);
  transition: transform 0.5s cubic-bezier(0.5, -0.5, 1, 1);
  text-align: center;
}
